QueryPerformanceFrequency (kernel32)
Last changed: -71.245.77.30

.
Summary

C# Signature:

[DllImport("kernel32.dll", SetLastError=true)]
static extern bool QueryPerformanceFrequency(out ulong frequency);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

If you are using this API, you are probably also looking for the QueryPerformanceCounter function.

Sample Code:

ulong f;
private void bStart_Click(object sender, System.EventArgs e)
{    bool success = QueryPerformanceFrequency( out f);
    System.Windows.Forms.MessageBox.Show("Freq. = "+f);
}

Alternative Managed API:

Do you know one? Please contribute it!

Documentation